package main

import (
	"fmt"
	"net/http"
)

func myHandler(res http.ResponseWriter, req *http.Request) {

	fmt.Println(req.RemoteAddr, "链接成功")
	fmt.Println(req.Method)
	fmt.Println(req.URL.Path)
	fmt.Println(req.Header)
	fmt.Println(req.Body)

	res.Write([]byte("你很好的"))

}

func main() {

	http.HandleFunc("/go", myHandler)

	http.ListenAndServe("127.0.0.1:8080", nil)

}
